package com.waijiaojun.tpo.repository;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.waijiaojun.tpo.entity.Vocabulary;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface VocabularyDao {
    int insert(@Param("pojo") Vocabulary pojo);

    int insertSelective(@Param("pojo") Vocabulary pojo);

    int insertList(@Param("pojos") List<Vocabulary> pojo);

    int update(@Param("pojo") Vocabulary pojo);

    Long countForScenarioId(@Param("openid") String openid,@Param("scenarioId") Long scenarioId);

    List<Vocabulary> findByScenarioId(@Param("scenarioId")Long scenarioId);

    void delete(Long id);
}
